package com.exception.demo.exception1;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ErrorInfo {
	
	private String time;// 发生时间
	
	private String url;// 访问Url
	
	private String error;// 错误类型
	
	String stackTrace;// 错误的堆栈轨迹
	
	private int statusCode;// 状态码
	
	private String reasonPhrase;// 状态码

	@Override
	public String toString() {
		return "{\"time\":\"" + time + "\",\"url\":\"" + url + "\",\"error\":\"" + error + "\",\"stackTrace\":\""
				+ stackTrace + "\",\"statusCode\":\"" + statusCode + "\",\"reasonPhrase\":\"" + reasonPhrase + "\"}";
	}
	
	
}
